class Solution:

    def countPoints(self, rings: str) -> int:
        h = {'R': 0, 'G': 1, 'B': 2}
        cnt = [0] * 10
        for i in range(0, len(rings), 2):
            cnt[int(rings[i + 1])] |= 1 << h[rings[i]]
        return sum(1 for i in cnt if i == 7)


so = Solution()
print(so.countPoints("B0B6G0R6R0R6G9"))

h = {}
h['R'] = 0
h['G'] = 1
h['B'] = 2
print(h)


s = "1,,2,,"
print(len(s.split(",")))